#ifndef LIBRARY_SERVICE_H
#define LIBRARY_SERVICE_H
#include "Classbook.h"
#include "Book.h"
#include "User.h"
namespace LB
{
	class Library_service
	{
	public:
		virtual bool addclass(Classbook &classbook) = 0;
		virtual bool deleteclass(int classbook_id) = 0;
		virtual void listclass(void) = 0;
		virtual bool addbook(int classbook_id,Book &book) = 0;
		virtual bool deletebook(int classbook_id,int book_id) = 0;
		virtual bool borrowbook(int bookid,int userid) = 0; 
		virtual void revertbook(int bookid,int userid) = 0;
		virtual void listbook(int classbook_id) = 0;
		virtual void listallbook(void) = 0;
		virtual void adduser(User &user) = 0;
		virtual void deleteuser(int user_id) = 0;
		virtual void listuser(void) = 0;
		virtual bool addbalance(int id, float balance) = 0;
		virtual ~Library_service() { }
		
	};
}

#endif
